using Xtensive.Orm;

namespace SalesPoint.Model
{
  public abstract class BusinessContact : Entity
  {
    [Field(Length = 40, Indexed = true)]
    public string CompanyName { get; set; }

    [Field(Length = 30)]
    public string ContactName { get; set; }

    [Field(Length = 30)]
    public string ContactTitle { get; set; }

    [Field]
    public Address Address { get; set; }

    [Field(Length = 24)]
    public string Phone { get; set; }

    [Field(Length = 24)]
    public string Fax { get; set; }


    // Constructors

    protected BusinessContact(Session session, string id)
      : base(session, id)
    {}

    protected BusinessContact(Session session, int id)
      : base(session, id)
    {
    }
  }
}